package com.itheima.demo.demo09;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class copy {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("C:\\Program Files\\feiq\\Recv Files\\" + "JavaEE基础_最终章.CHM");
        FileOutputStream fos=new FileOutputStream("D:\\Day01\\JavaEE基础_最终章.CHM");
        int len=0;
        byte[]b=new byte[1024];
        while ((len=fis.read(b))!=-1){
            fos.write(b,0,len);
        }
        fos.close();
        fis.close();
    }
}
